    $(function () {
        var wayfinder = window._wayfinder;
        var HeroClass = null;
        try {
            HeroClass = Microsoft.Support.GSS.GPS.Hero;
        } catch (e) {
            return;     // no such class
        }
        var hero = new HeroClass("#hero_wrapper", {
            modality: wayfinder ? wayfinder.getCurrentModality().type : null,
            scope: wayfinder ? wayfinder.getCurrentScope() : null,
            isRTL: false
            });

        // notice findsolutions to switch current product when wayfinder changed product
        if (wayfinder) {
            $(wayfinder).bind("modalityselect", function (evt, modality, srcEvt) {
                hero.switchPage(modality.type, wayfinder.getCurrentScope());
            }).bind("productselect", function (e, product, srcEvt) {
                hero.switchPage(wayfinder.getCurrentModality().type, product);
            });
            
            
        }
    });